<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>商户管理</title>
	<link href="__INDEX__/store/css/mui.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="__INDEX__/store/css/style.css" />
	<link rel="stylesheet" href="__INDEX__/store/css/iconfont.css" />
	<link rel="stylesheet" href="__INDEX__/store/css/wallet.css" />
</head>
<body>
	<header class="mui-bar mui-bar-nav sjzx_bar">
	    <h1 class="mui-title">商户管理</h1>
	</header>
	<div class="mui-content sjzx_content">
		<div class="sjzx_topbox">
			<div class="sjzx_top">
				<div class="sjzx_jb"><a href="#">&nbsp;</a></div>
				<div class="sjzx_memimg">
				{if $agent_info['logo'] == null}
	    		<img id="agent_logo" src="__INDEX__/images/member.jpg">
	    		{else /}
	    		<img id="agent_logo" src="{$agent_info['logo']}">
	    		{/if}
	    		</div>
				<div class="sjzx_memnam"></div>
				<div class="sjzx_level"></div>
				<ul class="sjzx_navbox clearfix">
			    	<li style="width: 49.5%;">
			    		<p>余额</p>
			    		<p class="yue_record">￥<em id="ye" style="font-size: 1.0rem;"><?php  echo substr($agent_info['balance'],0,strlen($agent_info['balance'])-2);?></em></p>
			    	</li>
			    	<li style="width: 49.5%;">
			    		<p>商家鼓励金</p>
			    		<p class="score_record" id="jf" style="font-size: 1.0rem;"><?php  echo substr($agent_info['score'],0,strlen($agent_info['score'])-2);?></p>
			    	</li>
			    </ul>
			</div>
		</div>
		<ul class="mui-table-view mui-grid-view mui-grid-9 sjzx_nav2">
    		<li class="mui-table-view-cell mui-media">
				<a href="{:url('agent/shop_list')}">
					<span class="mui-icon iconfont icon-mendian"></span>
					<div class="mui-media-body">我的门店</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media">
				<a href="{:url('agent/goods_list')}">
					<span class="mui-icon iconfont icon-dingdan4"></span>
					<div class="mui-media-body">商品管理</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media">
				<a href="{:url('report/index',['type'=>1])}">
					<span class="mui-icon iconfont icon-zhangdanzongjie"></span>
					<div class="mui-media-body">经营报表</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media">
				<a href="{:url('order/orders',['type'=>1])}" id="store_order">
					<span class="mui-icon iconfont icon-jilu"></span>
					<div class="mui-media-body">订单信息</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media">
				<a href="{:url('wallet/yun_pay')}" id="store_score_pay">
					<span class="mui-icon iconfont icon-yongjin1"></span>
					<div class="mui-media-body">鼓励金营销</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media">
				<a href="{:url('agent/hongb_list')}" id="union_list">
					<span class="mui-icon iconfont icon-ai-hongbao"></span>
					<div class="mui-media-body">鼓励金红包</div>
				</a>
			</li>
    		<!--<li class="mui-table-view-cell mui-media">
				<a href="javascript:;" id="union_list">
					<span class="mui-icon iconfont icon-hezuo"></span>
					<div class="mui-media-body">联盟商圈</div>
				</a>
			</li>-->
			
			<li class="mui-table-view-cell mui-media">
				<a href="{:url('agent/employeemage')}" id="employee">
					<span class="mui-icon iconfont icon-xinxixiugai"></span>
					<div class="mui-media-body">员工管理</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media">
				<a href="{:url('wallet/shop_payment')}">
					<span class="mui-icon iconfont icon-saoma1"></span>
					<div class="mui-media-body">收款二维码</div>
				</a>
			</li>
		
			<li class="mui-table-view-cell mui-media">
				<a href="{:url('wallet/record')}">
					<span class="mui-icon iconfont icon-shoukuanjilu"></span>
					<div class="mui-media-body">收款记录</div>
				</a>
			</li>
			<!--<li class="mui-table-view-cell mui-media" id="help">
				<a href="#">
					<span class="mui-icon iconfont icon-help"></span>
					<div class="mui-media-body">帮助中心</div>
				</a>
			</li>-->
		</ul>    
	</div>
</body>
</html>
{include file="public/footer" /}
<script type="text/javascript">
	//商户信息
	$(".sjzx_memimg").click(function(){
		location.href="/store/agent/agent.html";
	});
	//余额
	$(".yue_record").click(function(){
		location.href="/store/agent/yue_record.html";
	});
	//鼓励金
	$(".score_record").click(function(){
		location.href="/store/agent/score_record.html";
	});		
	//订单
	$("#store_order").click(function(){
		location.href=APP.web_root+"shopwallet/orders.html";
	});
//	//联盟商圈
//	$("#union_list").click(function(){
//		location.href=APP.web_root+"shopwallet/alliance_fjlist.html";
//	});
	//连锁店
	$("#liansuod").click(function(){
		location.href=APP.web_root+"shopwallet/liansuod_edit.html";
	});
	
	//商家二维码收款
	$("#store_payment").click(function(){
		location.href="/store/wallet/shop_payment.html";
	});
	//商家收款记录
	$("#store_record").click(function(){
		location.href="/store/wallet/record.html";
	});
	//帮助中心
	$("#help").click(function(){
		location.href="../member/help.html?type=2";
	});
</script>
